import React, { Component } from "react";
import { Redirect, Switch, Route } from "react-router-dom";
import OrderQuery from "./order_query";
import OrderQueryDetail from "./order_query_detail";

export default class OrderQueryHome extends Component {
  render() {
    return (
      <Switch>
        <Route path="/orderquery" component={OrderQuery} exact />
        <Route path="/orderquery/detail" component={OrderQueryDetail} />
        <Redirect to="/orderquery" />
      </Switch>
    );
  }
}
